<template>
  <div class="operation-buttons">
    <slot />
  </div>
</template>

<script setup>
// 操作按钮组件
</script>

<style lang="scss" scoped>
.operation-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 180px;

  :deep(.el-button) {
    min-width: 50px;
    height: 28px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;

    &.el-button--small {
      min-width: 50px;
      height: 28px;
      padding: 4px 8px;
      font-size: 12px;
    }
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .operation-buttons {
    flex-direction: column;
    gap: 4px;
    min-width: 60px;

    :deep(.el-button) {
      width: 100%;
      min-width: 60px;
    }
  }
}

@media (max-width: 768px) {
  .operation-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    min-width: 120px;

    :deep(.el-button) {
      flex: 1;
      min-width: 35px;
      height: 24px;
      padding: 2px 4px;
      font-size: 10px;
    }
  }
}
</style>
